package com.lin.vueblog.utils;

import com.lin.vueblog.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @author ChenweiLin
 * @create 2021-04-05 17:12
 */
public class ShiroUtil {

    public static AccountProfile getProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
